import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
export const system: AppRouteModule = {
	path: '/system',
	name: 'system',
	component: LAYOUT,
	meta: {
		orderNo: 10,
		icon: 'ion:grid-outline',
		title: "系统管理",
	},
	children: [
		{
			path: 'menu',
			name: 'menu',
			component: () => import('/@/views/system/menu/index.vue'),
			meta: {
				// affix: true,
				title: "菜单管理",
			},
		},
		{
			path: 'user',
			name: 'user',
			component: () => import('/@/views/system/user/index.vue'),
			meta: {
				// affix: true,
				title: "用户管理",
			},
		},
		{
			path: 'role',
			name: 'role',
			component: () => import('/@/views/system/role/index.vue'),
			meta: {
				// affix: true,
				title: "角色管理",
			},
		},
		// {
		// 	path: 'alarmreal',
		// 	name: 'alarmreal',
		// 	component: () => import('/@/views/alarm/real/index.vue'),
		// 	meta: {
		// 		// affix: true,
		// 		title: "实时告警",
		// 	},
		// },
		{
			path: 'dict',
			name: 'dict',
			component: () => import('/@/views/system/dict/index.vue'),
			meta: {
				// affix: true,
				title: "数据字典",
			},
		},
	],
}

export const dashboard: AppRouteModule = {
	path: '/welcome',
	name: 'welcome',
	component: LAYOUT,
	meta: {
				// affix: true,
				title: "首页",
			},
};
